package com.frxuexi.lib_base.room

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query

@Dao
interface LoveDao {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun addLove(loveEntity: LoveEntity):Long

    @Query("select * from love where vid=:id")
    fun isLove(id:Int):LoveEntity

    @Delete
    fun deleteLove(loveEntity: LoveEntity):Int
}